<?php
const TEST = 'test';

final class Persion {
    const NAME = "lisi";
    // final 修饰的方法无法被重写
    public function test(){
        echo self::NAME.'<br/>';
        echo TEST.'<br/>';
    }
}

$p = new Persion();
$p->test();

echo Persion::NAME;
